<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
	<head>
		<title>编辑用户</title>
		<meta name="decorator" content="default"/>
		<script type="text/javascript">
			$(function() {
				//初始化表单验证
				$("#inputForm").initValidform();
			});
		</script>
	</head>
	
	<body class="mainbody">
		<form:form id="inputForm" modelAttribute="member" action="${ctx}/sd/member/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<!--导航栏-->
			<div class="location">
				<a href="${ctx}/sd/member/list" class="back"><i></i><span>返回列表页</span></a>
				<a href="${ctx}/center" class="home"><i></i><span>首页</span></a> 
				<i class="arrow"></i> 
				<a href="${ctx}/sd/member/form?id=${member.id}"><span>用户</span></a>
				<shiro:hasPermission name="sd:member:edit"><i class="arrow"></i><span>${not empty member.id ? '修改':'添加' }用户</span></shiro:hasPermission>
			</div>	
			<div class="line10"></div>
			<!--/导航栏-->
	
			<!--内容-->
			<div id="floatHead" class="content-tab-wrap">
				<div class="content-tab">
					<div class="content-tab-ul-wrap">
						<ul>
							<li><a class="selected" href="javascript:;">用户信息</a></li>
						</ul>
					</div>
				</div>
			</div>
	
			<div class="tab-content">
				<dl>
					<dt>OpenId</dt>
					<dd>
						<form:input  path="openid"  htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入OpenId" errormsg="请输入OpenId" sucmsg=" " />
<!-- 						<span class="Validform_checktip">*请输入OpenId</span> -->
					</dd>
				</dl>
				<dl>
					<dt>CustomerId</dt>
					<dd>
						<form:input  path="customerid"  htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入CustomerId" errormsg="请输入CustomerId" sucmsg=" " />
<!-- 						<span class="Validform_checktip">*请输入OpenId</span> -->
					</dd>
				</dl>				
				<dl>
					<dt>昵称</dt>
					<dd>
						<form:input path="nickname" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入昵称" errormsg="请输入昵称" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入昵称</span> -->
					</dd>
				</dl>
				<dl>
					<dt>性别</dt>
					<dd>
							<div class="rule-multi-radio">
							    <form:radiobutton path="sex"  value="0"  label="女" checked="checked" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请选择性别" errormsg="请选择性别" sucmsg=" "/>
							    <form:radiobutton path="sex"  value="1"  label="男" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请选择性别" errormsg="请选择性别" sucmsg=" "/>
							</div>
					</dd>
				</dl>
				<dl>
					<dt>用户头像</dt>
					<dd>
						<form:input path="headimgurl" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入用户头像" errormsg="请输入用户头像" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入用户头像</span> -->
					</dd>
				</dl>
				<dl>
					<dt>关注时间</dt>
					<dd>
						<div class="date-input">
						<i></i>
							<fmt:formatDate value="${member.subscribeTime}"  pattern="yyyy-MM-dd HH:mm"  var="subscribe"/>
							<form:input path="subscribeTime"  value="${subscribe}"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm' });"  htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入关注时间" errormsg="请输入关注时间" sucmsg=" "/>
						</div>
					</dd>
				</dl>
				<dl>
					<dt>名称</dt>
					<dd>
						<form:input path="name" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入名称" errormsg="请输入名称" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入名称</span> -->
					</dd>
				</dl>
				<dl>
					<dt>地址</dt>
					<dd>
						<form:input path="address" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入地址" errormsg="请输入地址" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入地址</span> -->
					</dd>
				</dl>
				<dl>
					<dt>电话</dt>
					<dd>
						<form:input path="mobile" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入电话" errormsg="请输入电话" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入电话</span> -->
					</dd>
				</dl>
				<dl>
					<dt>unionid</dt>
					<dd>
						<form:input path="unionid" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入unionid" errormsg="请输入unionid" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入unionid</span> -->
					</dd>
				</dl>
				<dl>
					<dt>分组ID</dt>
					<dd>
						<form:input path="groupid" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入分组ID" errormsg="请输入分组ID" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入分组ID</span> -->
					</dd>
				</dl>
				<dl>
					<dt>备注</dt>
					<dd>
						<form:input path="remark" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入备注" errormsg="请输入备注" sucmsg=" "/>
<!-- 						<span class="Validform_checktip">*请输入备注</span> -->
					</dd>
				</dl>
			</div>
			<!--/内容-->
	
			<!--工具栏-->
			<div class="page-footer">
				<div class="btn-wrap">
				<input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn" /> 
					<input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
				</div>
			</div>
			<!--/工具栏-->
		</form:form>
	</body>
</html>

